package models

type SysOfflineCourse struct {
	CourseId       int     `json:"course_id" gorm:"primaryKey;autoIncrement"`       // 课程ID
	SerialNum      string  `json:"serial_num" gorm:"type:varchar(20);comment:课程编号"` // 课程编号
	Subject        string  `json:"subject" gorm:"type:varchar(10);comment:科目"`      // 科目
	ClassType      string  `json:"class_type" gorm:"type:varchar(10);comment:班级类型"` //初级、中级、高级
	Province       string  `json:"province" gorm:"type:varchar(20);comment:适用地区"`
	Name           string  `json:"name" gorm:"type:varchar(255);comment:课程名称"`         // 课程名称
	Cover          string  `json:"cover" gorm:"type:varchar(255);comment:封面"`          // 封面
	Outline        string  `json:"outline" gorm:"type:varchar(255);comment:大纲"`        //大纲
	Price          float64 `json:"price" gorm:"type:decimal(10,2);comment:价格"`         // 价格
	Sales          int     `json:"sales" gorm:"type:int(10);comment:销量"`               // 销量
	Introduction   string  `json:"introduction" gorm:"type:varchar(255);comment:课程简介"` //课程简介
	CourseDuration int     `json:"course_duration" gorm:"type:int(10);comment:课程时长"`   //课程时长
	LecturerId     int     `json:"lecturer_id" gorm:"type:int(10);comment:班主任ID"`
	//OnlineClassId  int     `json:"online_class_id" gorm:"type:tinyint(2);comment:网课班级ID"` //网课班级ID
	//OnlineClass    string  `json:"online_class" gorm:"type:varchar(20);comment:网课班级"`     //网课班级
	//Contacts       string  `json:"contacts" gorm:"type:varchar(50);comment:班主任联系"`        //班主任联系
	BelongingProvince int    `json:"belonging_province" gorm:"type:int(5);not null;comment:所属大区"`
	City              int    `json:"city" gorm:"type:int(5);not null;comment:所属城市"`
	Area              int    `json:"area" gorm:"type:int(5);not null;comment:所属地区"`
	DeptId            int    `json:"dept_id" gorm:"type:smallint(5);not null;comment:教学点"` //教学点
	Explain           string `json:"explain" gorm:"type:varchar(50);comment:食宿说明"`
	BindingOnlineId   string `json:"binding_online_id" gorm:"varchar(10);comment:绑定的网课ID"`
	TrainingDays      int    `json:"training_days" gorm:"smallint(5);comment:集训天数"`
	BuyPush           string `json:"buy_push" gorm:"type:varchar(50);comment:购买推送消息"`
	CourseDesExplain  string `json:"course_des_explain" gorm:"type:text;comment:课程详细说明"`
	Status            int    `json:"status" gorm:"type:tinyint(1);comment:状态 -1为下架 1为上架"`
	Telephone         string `json:"telephone" gorm:"type:varchar(11);comment:联系电话"`
	PublicRange       string `json:"public_range" gorm:"type:varchar(11); comment:公开范围"`
	LBTUrl            string `json:"lbt_url" gorm:"type:varchar(5000);comment:轮播图地址"`
	Qq                string `json:"qq" gorm:"type:varchar(32);not null;default:'';comment:客服qq号"`

	ControlBy
	ModelTime
}

func (SysOfflineCourse) TableName() string {
	return "sys_offline_course"
}
